package fhp.hlhj.giantfold.module

import fhp.hlhj.giantfold.interfaces.BaseModuleInterface
import fhp.hlhj.giantfold.javaBean.VersionBean
import fhp.hlhj.giantfold.network.UrlApis

/**
 * Created by Administrator on 2018\2\23 0023.
 */
class VersionModule {
    interface OnVersionResp:BaseModuleInterface<VersionBean>

    fun getVersion(listener:OnVersionResp){
        UrlApis.getVersion()
                .doOnSubscribe {

                }
                .subscribe{
                    data->
                    listener.onResp(data)
                }
    }
}